<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 输入一个数字,判断能否被3整除并且能被5整除
        var num = prompt("请输入你要判断的数字：");

        alert((parseInt(num) % 3 === 0) && (parseInt(num) % 5 === 0))
    </script>
</body>
</html>